package com.example.certificate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.example.certificate.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统角色表
 * </p>
 *
 * @author hao
 * @since 2022-02-23 17:13:12
 */
@Getter
@Setter
@TableName("sys_role")
@ApiModel(value = "SysRole对象", description = "系统角色表")
public class SysRole extends SuperEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("角色描述")
    @TableField("role_desc")
    private String roleDesc;

    @ApiModelProperty("父id")
    @TableField("p_id")
    private String parentId;

    @ApiModelProperty("角色名称")
    @TableField("label")
    private String label;

    @ApiModelProperty("角色状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "排序字段")
    @TableField("sort")
    private Integer sort;

    @TableField(exist = false)
    private List<SysRole> children;
}
